/****************** Exercise 4 ******************
 * Turn the DataOnly code fragments into a
 * program that compiles and runs.
 ************************************************/ 
package thinkinginjava.everything_is_an_object;

class DataOnly{
    int i;
    double d;
    boolean b;
}

/**
 *
 * @author vlad
 */
public class Exercise4 {
    public static void main(String[] args){
        DataOnly data = new DataOnly();
        System.out.println("DataOnly instance is created");
        data.i = 1;
        data.d = 2.0;
        data.b = true;
    }
}
